Myweblogin Knowledge Base

Designing your own template and design for My Weblogin

Understanding Templates

There are two main templates in your Flower Store In a Box:

My Weblogin Templates

Dynamic Flower Store In a Box Template

The Dynamic Template is managed through your Shopping Cart dashboard and is split in to two elements:

Top of Site

Bottom of Site

When the page is called the page is assembled in the following order:

Scripts

Style sheets

Header

Page Content

Footer

You can insert many of the pre-built elements in to the dynamic template and you can also add in code in PERL.

There are a number of pre-built elements which you can insert into your templates.

Editing the Dynamic Template

Log into My Weblogin and click the Shopping Cart Icon

Click the Dashboard item Settings

Click the Dashboard Icon Edit Dynamic Template

You can edit the template in here.

When you are done click Save Changes.

The dynamic template is saved and visible on your site immediately, it is vitally important that you check your site after you have done this to ensure you have not made an error.

If you have made an error edit the changes out, and start again.

Login / Members Menu

To insert the login or members menu into your dynamic template use the code:

$login for a blog login

and $loginvertial for a login bar

When a user is not logged in this will display the login form and a register link.  When a member is logged in to your website it will display an unordered list of the members menu which will display:

Members Homepage

Edit My Details

Event reminder

Add An Event

Unsubscribe

Logout

This option can also be called from the My Weblogin template by using the code:

for a block element or

Product Category Lists

Product categories can either be hard coded into your website or they may be automatically inserted by the system.

Each of the main product categories may be inserted into the dynamic content by using the following code:

$flowerlist

$occasionlist

$addonlist

The menus will be inserted as an unordered list in alphabetic order.

The lists can also be inserted as a Server Side Include in your My Weblogin Template using the code:

<$ssi="/flowers.txt">

<$ssi="/occasions.txt">

<$ssi="addons.txt">

Metadata Insertion

You can automatically include the master, product and category metadata into your dynamic template by using the following code:

Page Title: $title

Keywords / description: $meta

Shopping Cart Contents

You can insert the values of the customers shopping cart into the dynamic template using the code:

Number of items: $it

Total Value of Shopping Cart: $ctotal

Where you are displaying a price and wish to have a dollar sign being displayed($) please hash out the dollar sign first by:

$

So the total value inserted into the dynamic code would be:

$$ctotal

You can insert the entire shopping cart items and link to the cart in your My Weblogin template by including the code:

<$ssi="/cgi-bin/cart/topcart.cgi">

Navigation and other items

You can insert the breadcrumbs for a product or category page in the dynamic template by including the code:

$crumb

Inserting Page Assets into Dynamic Templates

Just like you can insert a site asset into a page in My Weblogin you can also insert a site asset into the dynamic template

To do so:

~;

$name = &get_content(id of the page);

print qq~

$name

~;

You must include the closing ~; code and the starting print qq~ code or the template will break

 

Added: 2012-3-18 and last modified: 2018-10-25